<template>
    <div>
        <van-row>
            <Hearders />
            <van-col span="4">
                <Left />
            </van-col>
            <van-col span="12">
                <!-- {{myapplylst}} <br> -->
                <!-- {{myparams}} -->
                <br>
                
                <div v-for="k in myapplylst"> 
                    <p >
                        编号:{{k.id}}
                    </p>
                    <p v-if="k.status == 3 " style="color: green;">
                        审核成功  <a href="" >查看</a>
                    </p>
                    <p v-if="k.status == 2 " style="color: blue;">
                        审核中  <a href="">查看</a>
                    </p>
                    <p v-if="k.status == 1 " style="color: red;">
                        审核失败  <a href="">查看</a>
                    </p>
                    <ul>
                    <li v-for="i,j in myparams.params" >
                        {{j}}:{{i}}
                    </li>
                </ul>
                </div>

            


            </van-col>
            <van-col span="8">
            
            </van-col>
        </van-row>
    </div>
</template>

<script>
import Hearders from '../comm/hearders'
import Left from '../comm/left.vue'
import axios from '../../http/axios'
    export default {
        components: { Hearders ,Left}, 
        data() {
            return {
                myapplylst:[],
                userid:localStorage.getItem('userid'),
                myparams:[]
                
            }
        },
        methods: {
            getapply(){
                axios('/users/myapply/?userid='+this.userid,'get').then(res=>{
                    this.myapplylst = res.list
                    this.myparams = res.params
                })
            }
        },
        mounted() {
            this.getapply()
        },
    }
</script>

<style scoped>

</style>